<template>
  <div>
        <el-table
          @cell-click="aaa"
          :data="artLists"
          border
          style="width: 100%">
          <!-- <el-table-column v-for='item in Object.keys(artLists[0])' :key="item"
           :prop="item"
            :label="item"
            width="180">
          </el-table-column> -->
          <el-table-column
            label="操作">
          </el-table-column>
        </el-table>
  </div>
</template>

<script>
import { getArtLists} from "@/api"
   export default {
    data(){
      return{
        artLists:[]
      }
    },
    created(){
      this.getLists()    
    },
    methods:{
      aaa(cell){
        console.log(cell)
      },
      // 获取列表中的标
        //请求列表上数据
      getLists(){
        getArtLists().then(res=>{
            if(res.data.code==="0"){
              this.artLists=res.data.data.lists
              //  console.log(this.artLists)
            }
        })
    }
    }
  }
</script>

<style lang="scss" scoped>

</style>